package com.jinzhi.jzweb.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/***
 * @author C
 * @Date 2023/12/5
 * @Description: banner实体类
 * @Version 1.0
 */
@Data
@TableName("xn_banner")
public class BannerDO implements Serializable {

    @TableId
    private Long id;

    /**
     * banner名称
     */
    @TableField("name")
    private String name;

    /**
     *  图片
     */
    @TableField("value")
    private String value;

    /**
     *  类型 1-banner 2-logo
     */
    @TableField("type")
    private String type;

    /**
     *  等级
     */
    @TableField(value = "level",strategy = FieldStrategy.IGNORED)
    private Integer level;

    /**
     *  逻辑删除
     */
    @TableField(value = "is_deleted")
    private Integer deleted;

    /**
     *  创建时间
     */
    @TableField(value = "create_date")
    private Date createDate;

    /**
     *  修改时间
     */
    @TableField(value = "update_date")
    private Date updateDate;


}
